Structured Object Options
data class StructuredObjectOptions<RESULT, INPUT>(val api: String, val schema: Schema<RESULT>, val id: String = generateId("object"), val initialValue: RESULT? = null, val headers: Map<String, String> = emptyMap(), val transport: StructuredObjectTransport<INPUT> = DirectStructuredObjectTransport { emptyFlow() }, val onFinish: suspend (StructuredObjectFinish<RESULT>) -> Unit = {}, val onError: suspend (Throwable) -> Unit = {})
Constructors
Link copied to clipboard
constructor(api: String, schema: Schema<RESULT>, id: String = generateId("object"), initialValue: RESULT? = null, headers: Map<String, String> = emptyMap(), transport: StructuredObjectTransport<INPUT> = DirectStructuredObjectTransport { emptyFlow() }, onFinish: suspend (StructuredObjectFinish<RESULT>) -> Unit = {}, onError: suspend (Throwable) -> Unit = {})